#!/bin/tcsh

# update the tests
if (-d tests) then
  svn up tests
else
  svn checkout https://technioncstests.googlecode.com/svn/trunk/Compilation/hw2 tests
endif

# run the test itself, along with unit tests from makefile
cd tests
./test.sh

cd ..
if (-d hw4-liran-tests) then
  svn up hw4-liran-tests
else
  svn checkout https://technion-tests.googlecode.com/svn/trunk/Compilation/hw4 hw4-liran-tests
endif

# run the test itself, along with unit tests from makefile
cd hw4-liran-tests
./test.sh
